package service;

import dao.CommentMapper;
import dao.LikeMapper;
import entity.Comment;
import entity.Like;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CommentServiceImpl implements CommentService
{

    @Resource
    private CommentMapper commentMapper;


    @Override
    public List<Comment> getComment() {
        return commentMapper.getComment();
    }

    @Override
    public int addComment(Comment comment) {
        return commentMapper.addComment(comment);
    }
}
